<?php
$con = mysql_connect('localhost','root','');
$db = mysql_select_db('paradigmShift_DEV');
$roleID = $_POST['roleID'];
$empID = $_POST['empID'];
$shiftDate = $_POST['shiftDate'];
$startTime = $_POST['startTime'];
$endTime = $_POST['endTime'];

$sql = "insert into roledate values('','".$roleID."','".$empID."','".$shiftDate."','".$startTime."','".$endTime."','Active')";

/*
echo '-------------';
echo($sql);
echo '-------------';
*/

if (!mysql_query($sql))
{
    $result = array('result'=>'error');
}
else
{
    $result = array('result'=>'success');
}
echo(json_encode($result));
?>
